--[[

        fight_attribute.lua
        exported by excel2lua.py
        from file:fight_attribute.xlsx

--]]

local _data = {
  [1] = {id = 1,attr_101 = 165,attr_102 = 123,attr_103 = 6000,attr_104 = 100,attr_105 = 100,},
  [2] = {id = 2,attr_101 = 175,attr_102 = 140,attr_103 = 7000,attr_104 = 100,attr_105 = 45,},
  [3] = {id = 3,attr_101 = 200,attr_102 = 90,attr_103 = 5000,attr_104 = 100,attr_105 = 78,},
  [4] = {id = 4,attr_101 = 200,attr_102 = 100,attr_103 = 6500,attr_104 = 100,attr_105 = 21,},
  [5] = {id = 5,attr_101 = 170,attr_102 = 140,attr_103 = 7200,attr_104 = 100,attr_105 = 44,},
  [6] = {id = 6,attr_101 = 259,attr_102 = 120,attr_103 = 6000,attr_104 = 100,attr_105 = 50,},
  [7] = {id = 7,attr_101 = 230,attr_102 = 200,attr_103 = 6400,attr_104 = 100,attr_105 = 65,},
  [8] = {id = 8,attr_101 = 300,attr_102 = 129,attr_103 = 4500,attr_104 = 100,attr_105 = 12,},
}

local id_to_index={
   [1] = 1,
   [2] = 2,
   [3] = 3,
   [4] = 4,
   [5] = 5,
   [6] = 6,
   [7] = 7,
   [8] = 8,
}

local fight_attribute={}

function fight_attribute.length() 
   return #_data 
end 

function fight_attribute.indexOf(index) 
   return _data[index] 
end 

function fight_attribute.get(id) 
  return fight_attribute.indexOf(id_to_index[id])
end 

return fight_attribute